<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri ="http://shiro.apache.org/tags" prefix="shiro"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>课程系统</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>


<body>



<script>
new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue.js!'
  }
})
</script>





	<h1><a href="/siyuan/logout.shtml">退出</a></h1>
	
	<shiro:authenticated>
		
			<h1><a href="/siyuan/pass_home.shtml">更改密码</a></h1>
	</shiro:authenticated>
	
	
	<shiro:authenticated>
		登录后显示的内容!
	</shiro:authenticated>
	<br>
	用户名：<shiro:principal property="username"></shiro:principal><br>
	密码：<shiro:principal property="password"></shiro:principal><br>
	id：<shiro:principal property="userid"></shiro:principal><br>
	role：<shiro:principal property="role"></shiro:principal><br>
	
	
	<br>
	<h3>权限判断</h3>
	<br>
	
	
	
	
	<shiro:hasPermission name="function:student">
	学生权限:
<br>
		<a href="/siyuan/student_timetable.shtml">查看学生课程</a>
				<br>
		<a href="/siyuan/student_details.shtml">查看个人信息</a>
				<br>
		<a href="/siyuan/book_classroom.shtml">预订教室</a>
		
	</shiro:hasPermission>
	
	
	

	
	<shiro:hasPermission name="function:teacher">
	老师权限:
<br>
		<a href="/siyuan/teacher_timetable.shtml">查看老师课程</a>
		<br>
		<a href="/siyuan/teacher_details.shtml">查看个人信息</a>
		<br>
		<a href="/siyuan/book_classroom.shtml">预订教室</a>
	</shiro:hasPermission>
	
	
	
	<shiro:hasPermission name="function:admin">
	admin权限:
	</shiro:hasPermission>
	
	
	<shiro:hasPermission name="function:admin">
		<a href="/siyuan/admin_course.shtml">课程管理</a>
	
		<a href="/siyuan/teacher_home.shtml">老师管理</a>
		
		<a href="/siyuan/student_home.shtml">学生管理</a>
	
		<a href="/siyuan/admin_classroom.shtml">教室管理</a>
	</shiro:hasPermission>

	
	
</body>
</html>